import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView';

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login')
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'demo',
          name: '首页',
          meta: {
            icon: 'bank'
          },
          component: () => import('@/pages/demo')
        },
        {
          path: 'sceneList',
          name: '工单制作',
          meta: {
            icon: 'table'
          },
          component: () => import('@/pages/sceneList')
        },
        // {
        //   name: '验权页面',
        //   path: 'auth/demo',
        //   meta: {
        //     icon: 'file-ppt',
        //     authority: {
        //       permission: 'form',
        //       role: 'manager'
        //     },
        //     component: () => import('@/pages/demo')
        //   }
        // },
        {
          path: '/problemBase',
          name: '问题库',
          meta: {
            icon: 'file-unknown'
          },
          component: ()=> import('@/pages/problemBase/ProblemBase')
        },
        {
          path: '/userComments',
          name: '用户评价',
          meta: {
            icon: 'solution'
            },
          component: () => import('@/pages/userComments/UserComments')
        },
        {
          path: '/callingCard',
          name: '名片制作',
          meta: {
            icon: 'credit-card'
          },
          component: () => import('@/pages/callingCard/CallingCard')
        },
        {
          path: '/saleList',
          name: '系统配置',
          meta: {
            icon: 'team',
          },
          component: BlankView,
          children:[
            {
              path: 'saleList',
              name: '人员管理',
              component: () => import('@/pages/saleList/SaleList')
            },
            // {
            //   path: 'roles',
            //   name: '权限管理',
            //   component: () => import('@/pages/saleList/Roles')
            // },
          ]
        },
      ]
    }
  ]
}

export default options
